home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / access3g / download.frm next >
Text File  |  1999-08-17  |  3KB  |  93 lines

  1. VERSION 5.00
  2. Object = "{48E59290-9880-11CF-9754-00AA00C00908}#1.0#0"; "MSINET.OCX"
  3. Begin VB.Form Form1 
  4.    Caption         =   "Form1"
  5.    ClientHeight    =   3885
  6.    ClientLeft      =   60
  7.    ClientTop       =   345
  8.    ClientWidth     =   5235
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   3885
  11.    ScaleWidth      =   5235
  12.    StartUpPosition =   3  'Windows Default
  13.    Begin InetCtlsObjects.Inet InetWeb 
  14.       Left            =   3960
  15.       Top             =   600
  16.       _ExtentX        =   1005
  17.       _ExtentY        =   1005
  18.       _Version        =   393216
  19.    End
  20.    Begin VB.CommandButton Command2 
  21.       Caption         =   "&Save it"
  22.       Height          =   255
  23.       Left            =   2760
  24.       TabIndex        =   3
  25.       Top             =   3120
  26.       Width           =   1215
  27.    End
  28.    Begin VB.CommandButton Command1 
  29.       Caption         =   "&Get It"
  30.       Height          =   255
  31.       Left            =   600
  32.       TabIndex        =   2
  33.       Top             =   3120
  34.       Width           =   1215
  35.    End
  36.    Begin VB.Frame Frame1 
  37.       Height          =   3255
  38.       Left            =   120
  39.       TabIndex        =   0
  40.       Top             =   240
  41.       Width           =   4815
  42.       Begin VB.TextBox Text1 
  43.          Height          =   285
  44.          Left            =   480
  45.          TabIndex        =   4
  46.          Text            =   "http://"
  47.          Top             =   2520
  48.          Width           =   3495
  49.       End
  50.       Begin VB.Frame Frame2 
  51.          Caption         =   "HTML CODE"
  52.          Height          =   2055
  53.          Left            =   120
  54.          TabIndex        =   1
  55.          Top             =   240
  56.          Width           =   4575
  57.          Begin VB.TextBox Text2 
  58.             Height          =   1695
  59.             Left            =   120
  60.             MultiLine       =   -1  'True
  61.             ScrollBars      =   2  'Vertical
  62.             TabIndex        =   5
  63.             Top             =   240
  64.             Width           =   4335
  65.          End
  66.       End
  67.    End
  68. End
  69. Attribute VB_Name = "Form1"
  70. Attribute VB_GlobalNameSpace = False
  71. Attribute VB_Creatable = False
  72. Attribute VB_PredeclaredId = True
  73. Attribute VB_Exposed = False
  74. Option Explicit
  75. Private Sub Command1_Click()
  76.     Dim strTempData As String
  77.     With InetWeb
  78.         .AccessType = icUseDefault
  79.         Text2 = .OpenURL(Text1.Text)
  80.     End With
  81. End Sub
  82.  
  83. Private Sub Command2_Click()
  84.     Dim intFreeFile As Integer
  85.     Dim strTempString As String
  86.     Dim strLocation As String 'path of HTML file to save local
  87.     intFreeFile = FreeFile
  88.     strLocation = "c:\MyFile.htm"
  89.     Open strLocation For Output As #intFreeFile
  90.             Print #intFreeFile, Text2.Text
  91.     Close #intFreeFile
  92. End Sub
  93.